/*
 * CCS_keyboard.hpp
 *
 *  Created on: Mar 30, 2010
 *      Author: root
 *    about  keyboard
 */

#ifndef CCS_KEYBOARD_HPP_
#define CCS_KEYBOARD_HPP_

#include "CCS_include.hpp"


class c_keyboard                                   //keyboard ,from access
{
private:
    u32 keyboard_id;                  //keyboard's id;
    u8  name[NAME_LENIGHT];        //Name
    bool led_show;                 //led
    u32 showtype;
    u32 defaultuser;
    u32 defaultmonitor;
    u32 maxspeed;
    struct list_head Comm_list_head;

    key_press_char last_key;                      //last key press;
    u32 nNumber_input;                            //input'number;
    u32 select_mon_number;                        //Select's monitor;
    u32 select_cam_number;                        //select's camser;
    u32 login_user;                               //login user id;
public:
    void user_key_press(key_press_char key);      //user press key
    c_keyboard(u32 keyboardid,const char *cname,u32 nled_show,u32 nshowtype,u32 ndefaultuser,u32 ndefaultmonitor,u32 nmaxspeed);
	~c_keyboard();
	void showid(void);
	void add_port(u32 port);
};

#endif /* CCS_KEYBOARD_HPP_ */
